package com.visikard.response;

import org.json.JSONException;
import org.json.JSONObject;

public class SendAudienceToWalletResponse extends BaseResponse {
	private String message;

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	@Override
	public void extractDataFromServer(String response) throws JSONException {
		super.extractDataFromServer(response);

		// response OK
		if (errorCode == SUCCESS) {
			JSONObject jobj = getDataJObject(response);
			message = jobj.getString("messages");
		}
	}

}
